package etnorservice.etnor_service.domain;


import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Transient;

@Data
public class Project {
    @Id
    private Long id;
    private String name;
    private String description;
    private Long creatorId;
    private Boolean isFree = false;
    private BigDecimal price = BigDecimal.ZERO;
    private String coverImage;
    private String filePath;
    private Long fileSize;
    private Integer downloadCount = 0;
    private Integer viewCount = 0;
    private String version;
    private Date createdAt;
    private Date updatedAt;
    private String status; // draft, published, deleted

    @Transient
    private List<String> categories;
    @Transient
    private List<ProjectScreenshot> screenshots;
    @Transient
    private List<ProjectTag> tags;
    @Transient
    private List<ProjectFeature> features;
    @Transient
    private List<ProjectRequirement> requirements;


    // 在 Project 实体中添加
    private String giteeRepoName;      // Gitee仓库名
    private String giteeRepoUrl;       // Gitee仓库URL
    private String giteeDownloadUrl;   // Gitee下载URL
}